package com.zone.component_setting.di

import androidx.lifecycle.ViewModel
import com.zone.api.database.AppConfig
import com.zone.component_setting.viewmodel.SettingActivityVM
import com.zone.core.id.ViewModelKey
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap

@Module
class VMModule {

    @Provides
    @IntoMap
    @ViewModelKey(SettingActivityVM::class)
    fun getBaseActivityVM(config: AppConfig): ViewModel {
        return SettingActivityVM(config)
    }

}